instantiateReceiverCompat

@NonNull
open fun instantiateReceiverCompat(@NonNull cl: @NonNull ClassLoader, @NonNull className: @NonNull String, @Nullable intent: @Nullable Intent): @NonNull BroadcastReceiver(source)

Allows application to override the creation of receivers. This can be used to perform things such as dependency injection or class loader changes to these classes.

Parameters

cl

The default classloader to use for instantiation.

className

The class to be instantiated.

intent

Intent creating the class.